import { useNavigate } from "react-router-dom"
import { Button } from "tdesign-react";

/**
 * 404异常
 */
const NotFound = () => {
  const navigate = useNavigate();
  const onBack = () => {
    navigate('/dashboard/index', { replace: true });
  }
  return (
    <div className="not-found">
      <h3>您访问的页面不存在</h3>
      <Button onClick={ onBack }>返回首页</Button>
    </div>
  )
}

export default NotFound;